package com.hry.store.cms.dao;

import com.hry.store.cms.pojo.ProductVersion;
import com.hry.store.cms.pojo.SecondCategory;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
@Mapper
public interface ProductVersionMapper {
    int deleteByPrimaryKey(Integer versionId);

    int insert(ProductVersion record);

    int insertSelective(ProductVersion record);

    ProductVersion selectByPrimaryKey(Integer versionId);

    int updateByPrimaryKeySelective(ProductVersion record);

    int updateByPrimaryKey(ProductVersion record);

    List<SecondCategory> selectBySecondCategoryId(Integer secondCategoryId);

    int deleteBySecondCategoryId(Integer secondCategoryId);

//    int addVersion(@Param("secondCategoryId") Integer secondCategoryId,@Param("versionName") String versionName,@Param("versionPrice") BigDecimal versionPrice);
}